﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="wfrmEscritoActualizar.aspx.cs" Inherits="PresentationLayer.WebForm7" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxFileManager" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxUploadControl" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style7
        {}
        .style8
        {
            width: 153px;
        }
        .style10
        {
        }
        .style11
        {
            width: 165px;
        }
        .style14
        {
            width: 258px;
        }
        .style15
        {
            width: 153px;
            height: 16px;
        }
        .style16
        {
            width: 258px;
            height: 16px;
        }
        .style17
        {
            height: 16px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
        GroupBoxCaptionOffsetY="-22px" HeaderText="Registrar Escrito" Height="446px" 
        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="666px">
        <ContentPaddings PaddingBottom="5px" PaddingLeft="2px" PaddingTop="5px" />
        <HeaderStyle Height="23px">
        <Paddings PaddingBottom="0px" PaddingLeft="3px" PaddingTop="0px" />
        </HeaderStyle>
        <PanelCollection>
            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                <table style="width:100%;">
                    <tr>
                        <td class="style7" colspan="3">
                            <div style="width: 158px">
                                <table style="width:81%;">
                                    <tr>
                                        <td>
                                            <dx:ASPxButton ID="btnGrabar" runat="server" 
                                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                OnClick="btnGrabar_Click" 
                                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Grabar" 
                                                Height="21px" Width="70px">
                                            </dx:ASPxButton>
                                        </td>
                                        <td>
                                            <dx:ASPxButton ID="btnCancelar" runat="server" 
                                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                OnClick="btnCancelar_Click" 
                                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Cancelar" 
                                                Height="21px" Width="70px">
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="style10" colspan="3">
                            <div>
                                <table style="width:100%; height: 0px;">
                                    <tr>
                                        <td>
                                            <div>
                                                <table style="width: 42%;">
                                                    <tr>
                                                        <td>
                                                            <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Proceso :">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                        <td class="style11">
                                                            <dx:ASPxTextBox ID="txtResolucion" runat="server" Width="170px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <div>
                                <table style="width: 100%;">
                                    <tr>
                                        <td class="style15">
                                            Tipo de Escrito</td>
                                        <td class="style16">
                                            Nombre Archivo</td>
                                        <td colspan="2" align="right" class="style17">
                                            <dx:ASPxButton ID="btnWord" runat="server" 
                                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                Height="21px" OnClick="btnWord_Click" 
                                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                style="margin-left: 0px" Text="Word" Width="130px">
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style8">
                                            <dx:ASPxComboBox ID="cboTipoEscrito" runat="server" 
                                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                Height="16px" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                Width="245px" OnSelectedIndexChanged="cboTipoEscrito_SelectedIndexChanged">
                                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <ButtonStyle Width="11px">
                                                </ButtonStyle>
                                                <ValidationSettings ErrorText="Error has occurred">
                                                    <ErrorFrameStyle ImageSpacing="4px">
                                                        <ErrorTextPaddings PaddingLeft="4px" />
                                                    </ErrorFrameStyle>
                                                </ValidationSettings>
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td align="center" class="style14" rowspan="2">
                                            <dx:ASPxUploadControl ID="ulDocumento" runat="server" 
                                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                Height="39px" OnFileUploadComplete="ulDocumento_FileUploadComplete" 
                                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="227px" 
                                                ClientIDMode="AutoID" ShowUploadButton="True">
                                                <ValidationSettings MultiSelectionErrorText="Attention! 

The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 

{2}" AllowedFileExtensions=".doc, .docx">
                                                </ValidationSettings>
                                            </dx:ASPxUploadControl>
                                        </td>
                                        <td>
                                            <dx:ASPxButton ID="btnAgregar" runat="server" 
                                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                Height="22px" OnClick="btnAgregar_Click" 
                                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                style="margin-left: 6px" Text="Agregar" Width="41px">
                                            </dx:ASPxButton>
                                        </td>
                                        <td>
                                            <dx:ASPxButton ID="btnQuitar" runat="server" 
                                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                Height="21px" OnClick="btnQuitar_Click" 
                                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Quitar" 
                                                Width="41px">
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style8">
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <dx:ASPxGridView ID="dgEscritos" runat="server" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                Width="640px" KeyFieldName="Item">
                                <SettingsBehavior AllowFocusedRow="True" />
                                <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                    CssPostfix="BlackGlass">
                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                    </Header>
                                </Styles>
                                <StylesEditors>
                                    <CalendarHeader Spacing="1px">
                                    </CalendarHeader>
                                    <ProgressBar Height="25px">
                                    </ProgressBar>
                                </StylesEditors>
                            </dx:ASPxGridView>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <dx:ASPxPopupControl ID="pcMensaje" runat="server" 
                                ClientInstanceName="pcMensaje" CloseAction="None" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                HeaderText="Mensaje" Height="130px" PopupHorizontalAlign="WindowCenter" 
                                PopupVerticalAlign="WindowCenter" ShowCloseButton="False" 
                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="346px" 
                                Modal="True">
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </LoadingPanelImage>
                                <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                                </ContentStyle>
                                <HeaderStyle>
                                <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                                    PaddingTop="3px" />
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                        <table style="width:100%;">
                                            <tr>
                                                <td align="center" colspan="3">
                                                    <dx:ASPxLabel ID="lblMensaje" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    &nbsp;</td>
                                                <td>
                                                    &nbsp;</td>
                                                <td>
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    &nbsp;</td>
                                                <td align="center">
                                                    <dx:ASPxButton ID="btnAceptar" runat="server" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Aceptar">
                                                        <ClientSideEvents Click="function(s, e) {
	pcMensaje.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    &nbsp;</td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                    </tr>
                    <tr>
                        <td class="style10">
                            &nbsp;</td>
                        <td>
                            <dx:ASPxTextBox ID="txtNomArchivo" runat="server" Width="170px">
                            </dx:ASPxTextBox>
                            <asp:HiddenField ID="HiddenField1" runat="server" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style10">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
</asp:Content>
